package org.wlw.io;

import java.io.IOException;
import java.io.InputStream;

public class TestSystemIn {
	public static void main(String[] args) {
		InputStream is = null;
		try {
			is = System.in;
			byte[] buf = new byte[1024];
			int len = 0;
			while((len=is.read(buf))>0) {
				String str = new String(buf,0,len);
				System.out.println(str);
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				if(is!=null) is.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
